<?php
class clientsSloganWidgetComponents extends myComponents {

    public function executeRender() {
         $this->node = $this->getRoute()->getObject();

         if ($this->node->getParameter() == 'clients') {
             $this->slogan = $this->node->getDescription();
         } else {
             $parent = $this->node->getParent();
             $this->slogan = $parent->getDescription();
         }
    }
}